<script setup lang="ts">
import {useRoute} from "vue-router";
import {ref} from "vue";

let route = useRoute()
// console.log(route.query)
console.log("route.params:", route.params)



</script>

<template>
  <div>产品详情页面组件</div>
  <ul>
    <li>编号：{{ route.params.id }}</li>
    <li>名称：{{ route.params.title }}</li>
  </ul>

</template>

<style scoped>

</style>
